package ru.dc.object;

import ru.dc.object.commands.Search;

/**
 * Запрос на поиск.
 * <pre>
 * User: Penkov Vladimir
 * Date: 01.11.2010
 * Time: 10:57:03
 * </pre>
 */
public class SearchRequest {

    private String query;
    private SearchConstants.SearchType dataType = SearchConstants.SearchType.ANY;
    private boolean sizeRestricted;
    private boolean maxSize;
    private long size;

    public Search.SearchType getDataType() {
        return dataType;
    }

    public void setDataType(Search.SearchType dataType) {
        this.dataType = dataType;
    }

    public boolean isMaxSize() {
        return maxSize;
    }

    public void setMaxSize(boolean maxSize) {
        this.maxSize = maxSize;
    }

    public String getQuery() {
        return query;
    }

    public void setQuery(String query) {
        this.query = query;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public boolean isSizeRestricted() {
        return sizeRestricted;
    }

    public void setSizeRestricted(boolean sizeRestricted) {
        this.sizeRestricted = sizeRestricted;
    }
}
